package main

import (
	"bytes"
	"fmt"

	"gitee.com/zhangycsz/glin"
)

func main() {
	temp := glin.RendererTemplate{}

	temp.SetViewPath("./views")
	temp.LoadTemplate()
	buf := new(bytes.Buffer)
	c := glin.NewContent()
	err := temp.Render(buf, "/index/test", nil, c)
	if err != nil {
		fmt.Println("err=", err)
	} else {
		fmt.Println(buf.String())
	}
}
